package cn.edu.nuc.crm.entity;


import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

public class ValidateModel {
		@NotEmpty(message="{name.not.empty}")
		private String name;
		@Range(min=0,max=150,message="{age.not.inrange}")
		private String age;
		@NotEmpty(message="{email.not.empty}")
		@Email(message="{email.not.correct}")
		private String email;
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getAge() {
			return age;
		}
		public void setAge(String age) {
			this.age = age;
		}
		public String getEmail() {
			return email;
		}
		public void setEmail(String email) {
			this.email = email;
		}
		
}
